package com.test;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.RepositoryService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author scw
 * @create 2018-01-15 11:06
 * @desc 从数据源和流程图中，生成一个数据库表（这个就是Activiti流程控制的关键的数据表）
 **/
public class ActivitiTable {
    /**
     * 创建Activiti流的相关的数据库表
     */
    @Autowired
    private ProcessEngine processEngine;
    @Autowired
    private RepositoryService repositoryService;
    @Test
    public void test(){
        if(null==repositoryService){
            System.out.println("aaaaaaa");
        }else{
            System.out.println(processEngine.toString());
        }
    }

}
